package com.briup.web_demo2.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ResponseEnum {
    /**
     * 成功
     */
    SUCCESS(200,"操作成功！"),
    /**
     * 未知错误
     */
    ERROR(500,"服务器未知异常！"),

    INSERT_NOT_HAVA_ID(1001, "不能传递用户Id"),
    STUDENT_NAME_IS_NOT_NULL(1002, "姓名不能为空"),
    GENDER_FORMAT_ERROR(1003, "性别格式错误"),

    ID_IS_NOT_NULL(1004, "Id不能为空"),
    STUDENT_IS_NOT_NULL(1006, "根据Id查找的学生信息为空"),

    INSERT_NOT_HAVE_ID(1008,"Id不能为空" ),
    PAGENUM_OR_PAGESIZE_IS_NUL(1009,"传递的页码或页面大小数据为空" );

    private Integer code;
    private String message;
}
